// eslint-disable-next-line no-unused-vars
import {getRequest,postRequest} from "@/utils/request";

/**
 *  用户登陆
 * @param url 登陆请求接口
 * @param params 参数
 * @returns {AxiosPromise}
 * @constructor
 */
export const Login = (params) => {
  return postRequest('/login',params);
};
export const Logout = () => {
  return getRequest('/logout');
};
export const Email = (params) => {
  return postRequest('/email',params);
};
export const Register = (params) => {
  return postRequest('/register',params);
};
